home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11894 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.unix.programmer,comp.lang.c
  4. Subject: Re: getpwnam() -error checking
  5. Date: Wed, 27 Mar 96 12:22:18 GMT
  6. Organization: none
  7. Message-ID: <827929338snz@genesis.demon.co.uk>
  8. References: <Pine.SOL.3.91.960327025242.5526B-100000@ee.tamu.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <Pine.SOL.3.91.960327025242.5526B-100000@ee.tamu.edu>
  15.            ajay@ee.tamu.edu "Ajay Kumar Gummadi" writes:
  16.  
  17. >
  18. >Hi all,
  19. >
  20. >  The function getpwnam() takes the user-id as input argument and returns 
  21. >a pointer to a structure, that contains all the user information.
  22.  
  23. Or a null pointer on error.
  24.  
  25. >  If I give a wrong /non-existent user-id as input argument, how can I 
  26. >check the error condition that may arise, before, the system dumps core.
  27.  
  28. Note that getpwnam() is not a part of the C language - it was inappropriate
  29. to cross-post this to comp.lang.c.
  30.  
  31. -- 
  32. -----------------------------------------
  33. Lawrence Kirby | fred@genesis.demon.co.uk
  34. Wilts, England | 70734.126@compuserve.com
  35. -----------------------------------------
  36.